<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.9.1"/>
<title>IDA SDK: Type parsing</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { init_search(); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">IDA SDK
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.9.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="files.html"><span>Header&#160;Files</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="modules.html"><span>Modules</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
</div><!-- top -->
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#groups">Modules</a> &#124;
<a href="#typedef-members">Typedefs</a> &#124;
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle">
<div class="title">Type parsing</div>  </div>
</div><!--header-->
<div class="contents">
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<p>Format/Parse/Print type information. </p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="groups"></a>
Modules</h2></td></tr>
<tr class="memitem:group___h_t_i__"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___h_t_i__.html">Type formatting flags</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:group___p_t__"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___p_t__.html">Type parsing flags</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:group___p_r_t_y_p_e__"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___p_r_t_y_p_e__.html">Type printing flags</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="typedef-members"></a>
Typedefs</h2></td></tr>
<tr class="memitem:ga034013ece7194a003ffd1727075100d2"><td class="memItemLeft" align="right" valign="top">typedef int <a class="el" href="pro_8h.html#a6505e7ff3b129d8b17258304886fd133">idaapi</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__parse__tinfo.html#ga034013ece7194a003ffd1727075100d2">h2ti_type_cb</a>(const char *name, const <a class="el" href="classtinfo__t.html">tinfo_t</a> &amp;tif, const char *cmt, const <a class="el" href="pro_8h.html#a2f5563986d7f95e4fad5876c17d9cdda">uint64</a> *value, void *cb_data)</td></tr>
<tr class="memdesc:ga034013ece7194a003ffd1727075100d2"><td class="mdescLeft">&#160;</td><td class="mdescRight">This callback will be called for each type/variable declaration.  <a href="#ga034013ece7194a003ffd1727075100d2">More...</a><br /></td></tr>
<tr class="separator:ga034013ece7194a003ffd1727075100d2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gabcc521f1e3d068d8cdf760885a8f53c4"><td class="memItemLeft" align="right" valign="top">typedef int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__parse__tinfo.html#gabcc521f1e3d068d8cdf760885a8f53c4">printer_t</a>(const char *format,...)</td></tr>
<tr class="memdesc:gabcc521f1e3d068d8cdf760885a8f53c4"><td class="mdescLeft">&#160;</td><td class="mdescRight">Specify a printing callback when parsing types.  <a href="#gabcc521f1e3d068d8cdf760885a8f53c4">More...</a><br /></td></tr>
<tr class="separator:gabcc521f1e3d068d8cdf760885a8f53c4"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:gae9ae4eb67c4fdf5d59e22ba23af55f1f"><td class="memItemLeft" align="right" valign="top"><a class="el" href="pro_8h.html#a8ddba56b40c4be92718f8059abf51147">idaman</a> int <a class="el" href="pro_8h.html#a176294e75f953787714b9d08ffa89adf">ida_export</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__parse__tinfo.html#gae9ae4eb67c4fdf5d59e22ba23af55f1f">h2ti</a> (<a class="el" href="structtil__t.html">til_t</a> *ti, lexer_t *lx, const char *input, int flags=<a class="el" href="group___h_t_i__.html#ga1a2d19a5da522effe48cfe67e14fc479">HTI_HIGH</a>, <a class="el" href="group__parse__tinfo.html#ga034013ece7194a003ffd1727075100d2">h2ti_type_cb</a> *type_cb=NULL, <a class="el" href="group__parse__tinfo.html#ga034013ece7194a003ffd1727075100d2">h2ti_type_cb</a> *var_cb=NULL, <a class="el" href="group__parse__tinfo.html#gabcc521f1e3d068d8cdf760885a8f53c4">printer_t</a> *print_cb=NULL, void *_cb_data=NULL, <a class="el" href="typeinf_8hpp.html#a784254a39507ac759a9f373a52a75ac1">abs_t</a> _isabs=abs_unk)</td></tr>
<tr class="memdesc:gae9ae4eb67c4fdf5d59e22ba23af55f1f"><td class="mdescLeft">&#160;</td><td class="mdescRight">Convert declarations to type_t*.  <a href="#gae9ae4eb67c4fdf5d59e22ba23af55f1f">More...</a><br /></td></tr>
<tr class="separator:gae9ae4eb67c4fdf5d59e22ba23af55f1f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaa3ec4302201c52b95420edc3618b7eb2"><td class="memItemLeft" align="right" valign="top"><a class="el" href="pro_8h.html#a8ddba56b40c4be92718f8059abf51147">idaman</a> bool <a class="el" href="pro_8h.html#a176294e75f953787714b9d08ffa89adf">ida_export</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__parse__tinfo.html#gaa3ec4302201c52b95420edc3618b7eb2">parse_decl</a> (<a class="el" href="classtinfo__t.html">tinfo_t</a> *tif, <a class="el" href="pro_8h.html#a386c10c6aa4340f1d63df85f40454fce">qstring</a> *out, <a class="el" href="structtil__t.html">til_t</a> *til, const char *decl, int flags)</td></tr>
<tr class="memdesc:gaa3ec4302201c52b95420edc3618b7eb2"><td class="mdescLeft">&#160;</td><td class="mdescRight">Parse ONE declaration.  <a href="#gaa3ec4302201c52b95420edc3618b7eb2">More...</a><br /></td></tr>
<tr class="separator:gaa3ec4302201c52b95420edc3618b7eb2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gac30b8d9eb2dcc684749b795c06c9aa65"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__parse__tinfo.html#gac30b8d9eb2dcc684749b795c06c9aa65">convert_pt_flags_to_hti</a> (int pt_flags)</td></tr>
<tr class="memdesc:gac30b8d9eb2dcc684749b795c06c9aa65"><td class="mdescLeft">&#160;</td><td class="mdescRight">Convert <a class="el" href="group___p_t__.html">Type parsing flags</a> to <a class="el" href="group___h_t_i__.html">Type formatting flags</a>.  <a href="#gac30b8d9eb2dcc684749b795c06c9aa65">More...</a><br /></td></tr>
<tr class="separator:gac30b8d9eb2dcc684749b795c06c9aa65"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gae4cec61d812cfc0acc08453742b729b3"><td class="memItemLeft" align="right" valign="top"><a class="el" href="pro_8h.html#a8ddba56b40c4be92718f8059abf51147">idaman</a> int <a class="el" href="pro_8h.html#a176294e75f953787714b9d08ffa89adf">ida_export</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__parse__tinfo.html#gae4cec61d812cfc0acc08453742b729b3">parse_decls</a> (<a class="el" href="structtil__t.html">til_t</a> *til, const char *input, <a class="el" href="group__parse__tinfo.html#gabcc521f1e3d068d8cdf760885a8f53c4">printer_t</a> *printer, int hti_flags)</td></tr>
<tr class="memdesc:gae4cec61d812cfc0acc08453742b729b3"><td class="mdescLeft">&#160;</td><td class="mdescRight">Parse many declarations and store them in a til.  <a href="#gae4cec61d812cfc0acc08453742b729b3">More...</a><br /></td></tr>
<tr class="separator:gae4cec61d812cfc0acc08453742b729b3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga43ef73f0df2c860b554c5fef7ce273f3"><td class="memItemLeft" align="right" valign="top"><a class="el" href="pro_8h.html#a8ddba56b40c4be92718f8059abf51147">idaman</a> bool <a class="el" href="pro_8h.html#a176294e75f953787714b9d08ffa89adf">ida_export</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__parse__tinfo.html#ga43ef73f0df2c860b554c5fef7ce273f3">print_type</a> (<a class="el" href="pro_8h.html#a386c10c6aa4340f1d63df85f40454fce">qstring</a> *out, <a class="el" href="pro_8h.html#a7b0aeaed04e477c02cf8ea3452002d1a">ea_t</a> ea, int prtype_flags)</td></tr>
<tr class="memdesc:ga43ef73f0df2c860b554c5fef7ce273f3"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get type declaration for the specified address.  <a href="#ga43ef73f0df2c860b554c5fef7ce273f3">More...</a><br /></td></tr>
<tr class="separator:ga43ef73f0df2c860b554c5fef7ce273f3"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<h2 class="groupheader">Typedef Documentation</h2>
<a class="anchor" id="ga034013ece7194a003ffd1727075100d2"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">typedef int <a class="el" href="pro_8h.html#a6505e7ff3b129d8b17258304886fd133">idaapi</a> h2ti_type_cb(const char *name, const <a class="el" href="classtinfo__t.html">tinfo_t</a> &amp;tif, const char *cmt, const <a class="el" href="pro_8h.html#a2f5563986d7f95e4fad5876c17d9cdda">uint64</a> *value, void *cb_data)</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>This callback will be called for each type/variable declaration. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">name</td><td>var/func/type name </td></tr>
    <tr><td class="paramname">tif</td><td>type info </td></tr>
    <tr><td class="paramname">cmt</td><td>main comment </td></tr>
    <tr><td class="paramname">value</td><td>symbol value </td></tr>
    <tr><td class="paramname">cb_data</td><td>data passed to callback </td></tr>
  </table>
  </dd>
</dl>
<dl class="retval"><dt>Return values</dt><dd>
  <table class="retval">
    <tr><td class="paramname">T_CBBRKDEF</td><td>the type declaration won't be saved in the til </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="gabcc521f1e3d068d8cdf760885a8f53c4"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">typedef int printer_t(const char *format,...)</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Specify a printing callback when parsing types. </p>
<p>See <a class="el" href="group__parse__tinfo.html#gae9ae4eb67c4fdf5d59e22ba23af55f1f" title="Convert declarations to type_t*. ">h2ti()</a> and <a class="el" href="group__parse__tinfo.html#gae4cec61d812cfc0acc08453742b729b3" title="Parse many declarations and store them in a til. ">parse_decls()</a>. </p>

</div>
</div>
<h2 class="groupheader">Function Documentation</h2>
<a class="anchor" id="gae9ae4eb67c4fdf5d59e22ba23af55f1f"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="pro_8h.html#a8ddba56b40c4be92718f8059abf51147">idaman</a> int <a class="el" href="pro_8h.html#a176294e75f953787714b9d08ffa89adf">ida_export</a> h2ti </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structtil__t.html">til_t</a> *&#160;</td>
          <td class="paramname"><em>ti</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">lexer_t *&#160;</td>
          <td class="paramname"><em>lx</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>input</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>flags</em> = <code><a class="el" href="group___h_t_i__.html#ga1a2d19a5da522effe48cfe67e14fc479">HTI_HIGH</a></code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__parse__tinfo.html#ga034013ece7194a003ffd1727075100d2">h2ti_type_cb</a> *&#160;</td>
          <td class="paramname"><em>type_cb</em> = <code>NULL</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__parse__tinfo.html#ga034013ece7194a003ffd1727075100d2">h2ti_type_cb</a> *&#160;</td>
          <td class="paramname"><em>var_cb</em> = <code>NULL</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__parse__tinfo.html#gabcc521f1e3d068d8cdf760885a8f53c4">printer_t</a> *&#160;</td>
          <td class="paramname"><em>print_cb</em> = <code>NULL</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">void *&#160;</td>
          <td class="paramname"><em>_cb_data</em> = <code>NULL</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="typeinf_8hpp.html#a784254a39507ac759a9f373a52a75ac1">abs_t</a>&#160;</td>
          <td class="paramname"><em>_isabs</em> = <code>abs_unk</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Convert declarations to type_t*. </p>
<p>This is a low level function - use <a class="el" href="group__parse__tinfo.html#gae4cec61d812cfc0acc08453742b729b3" title="Parse many declarations and store them in a til. ">parse_decls()</a> or <a class="el" href="group__parse__tinfo.html#gaa3ec4302201c52b95420edc3618b7eb2" title="Parse ONE declaration. ">parse_decl()</a> </p><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">ti</td><td>type info library </td></tr>
    <tr><td class="paramname">lx</td><td>input lexer. may be NULL. always destroyed by <a class="el" href="group__parse__tinfo.html#gae9ae4eb67c4fdf5d59e22ba23af55f1f" title="Convert declarations to type_t*. ">h2ti()</a> </td></tr>
    <tr><td class="paramname">input</td><td>file name or C declaration </td></tr>
    <tr><td class="paramname">flags</td><td>combination of <a class="el" href="group___h_t_i__.html">Type formatting flags</a> </td></tr>
    <tr><td class="paramname">type_cb</td><td>callback - for each type </td></tr>
    <tr><td class="paramname">var_cb</td><td>callback - for each var </td></tr>
    <tr><td class="paramname">print_cb</td><td>may pass msg() here </td></tr>
    <tr><td class="paramname">_cb_data</td><td>data passed to callbacks </td></tr>
    <tr><td class="paramname">_isabs</td><td>abstractness </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>number of errors (they are displayed using print_cb). zero means ok </dd></dl>

</div>
</div>
<a class="anchor" id="gaa3ec4302201c52b95420edc3618b7eb2"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="pro_8h.html#a8ddba56b40c4be92718f8059abf51147">idaman</a> bool <a class="el" href="pro_8h.html#a176294e75f953787714b9d08ffa89adf">ida_export</a> parse_decl </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classtinfo__t.html">tinfo_t</a> *&#160;</td>
          <td class="paramname"><em>tif</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="pro_8h.html#a386c10c6aa4340f1d63df85f40454fce">qstring</a> *&#160;</td>
          <td class="paramname"><em>out</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structtil__t.html">til_t</a> *&#160;</td>
          <td class="paramname"><em>til</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>decl</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>flags</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Parse ONE declaration. </p>
<p>If the input string contains more than one declaration, the first complete type declaration (<a class="el" href="group___p_t__.html#ga275f154b9415ddab5d773d3f2ce48a30" title="return declared type information ">PT_TYP</a>) or the last variable declaration (<a class="el" href="group___p_t__.html#ga2372a33ffe07dcfaae46a1873a453e8f" title="return declared object information ">PT_VAR</a>) will be used. </p><dl class="section note"><dt>Note</dt><dd>name &amp; type &amp; fields might be empty after the call! </dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[out]</td><td class="paramname">tif</td><td>type info </td></tr>
    <tr><td class="paramdir">[out]</td><td class="paramname">out</td><td>declared name </td></tr>
    <tr><td class="paramdir"></td><td class="paramname">til</td><td>type library to use </td></tr>
    <tr><td class="paramdir"></td><td class="paramname">decl</td><td>C declaration to parse </td></tr>
    <tr><td class="paramdir"></td><td class="paramname">flags</td><td>combination of <a class="el" href="group___p_t__.html">Type parsing flags</a> </td></tr>
  </table>
  </dd>
</dl>
<dl class="retval"><dt>Return values</dt><dd>
  <table class="retval">
    <tr><td class="paramname">true</td><td>ok </td></tr>
    <tr><td class="paramname">false</td><td>declaration is bad, the error message is displayed </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="gac30b8d9eb2dcc684749b795c06c9aa65"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">int convert_pt_flags_to_hti </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>pt_flags</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Convert <a class="el" href="group___p_t__.html">Type parsing flags</a> to <a class="el" href="group___h_t_i__.html">Type formatting flags</a>. </p>
<p>Type parsing flags lesser than 0x10 don't have stable meaning and will be ignored (more on these flags can be seen in idc.idc) </p>

</div>
</div>
<a class="anchor" id="gae4cec61d812cfc0acc08453742b729b3"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="pro_8h.html#a8ddba56b40c4be92718f8059abf51147">idaman</a> int <a class="el" href="pro_8h.html#a176294e75f953787714b9d08ffa89adf">ida_export</a> parse_decls </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structtil__t.html">til_t</a> *&#160;</td>
          <td class="paramname"><em>til</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>input</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__parse__tinfo.html#gabcc521f1e3d068d8cdf760885a8f53c4">printer_t</a> *&#160;</td>
          <td class="paramname"><em>printer</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>hti_flags</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Parse many declarations and store them in a til. </p>
<p>If there are any errors, they will be printed using 'printer'. This function uses default include path and predefined macros from the database settings. It always uses the <a class="el" href="group___h_t_i__.html#ga7eadeea97aa05317c41e939b70714a56" title="don&#39;t complain about redeclarations ">HTI_DCL</a> bit. </p><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">til</td><td>type library to store the result </td></tr>
    <tr><td class="paramname">input</td><td>input string or file name (see hti_flags) </td></tr>
    <tr><td class="paramname">printer</td><td>function to output error messages (use msg or NULL or your own callback) </td></tr>
    <tr><td class="paramname">hti_flags</td><td>combination of <a class="el" href="group___h_t_i__.html">Type formatting flags</a> </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>number of errors, 0 means ok. </dd></dl>

</div>
</div>
<a class="anchor" id="ga43ef73f0df2c860b554c5fef7ce273f3"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="pro_8h.html#a8ddba56b40c4be92718f8059abf51147">idaman</a> bool <a class="el" href="pro_8h.html#a176294e75f953787714b9d08ffa89adf">ida_export</a> print_type </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="pro_8h.html#a386c10c6aa4340f1d63df85f40454fce">qstring</a> *&#160;</td>
          <td class="paramname"><em>out</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="pro_8h.html#a7b0aeaed04e477c02cf8ea3452002d1a">ea_t</a>&#160;</td>
          <td class="paramname"><em>ea</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>prtype_flags</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Get type declaration for the specified address. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">out</td><td>output buffer </td></tr>
    <tr><td class="paramname">ea</td><td>address </td></tr>
    <tr><td class="paramname">prtype_flags</td><td>combination of <a class="el" href="group___p_r_t_y_p_e__.html">Type printing flags</a> </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>success </dd></dl>

</div>
</div>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.9.1
</small></address>
</body>
</html>
